package com.zxc.dao;

import com.zxc.model.Admin;
import com.zxc.model.Student;
import com.zxc.model.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    public Student selectStuById(int id);
    public void insertStu(Student student);
    public void insertTeacher(Teacher teacher);
    public Teacher selectTeaById(int id);
    public Admin selectAdmById(int id);
    public void updateStuPass(Student student);
    public void updateTeaPass(Teacher teacher);
    public List<Teacher> queryAllTeacher();
    public List<Student> queryAllStudent();

    public Boolean updateAllStupass(@Param("password") String password);
    public Boolean updateAllTeapass(@Param("password") String password);
}
